package com.ziyucoding.springboot.labs.lab10.seatdemo.atdubbo.productservice.api;

/**
 * 商品服务RPC接口
 *
 * @author ziyucoding
 * @date 2022-11-03
 **/
public interface ProductServiceApi {

    /**
     * 扣减库存
     *
     * @param productId
     * @param amount
     * @return void
     **/
    void reduceStock(Long productId, Integer amount) throws Exception;
}
